package com.iflysse.controller;

import com.iflysse.pojo.vo.common.CommonVoResp;
import com.iflysse.pojo.vo.req.*;
import com.iflysse.pojo.vo.resp.AddResourceRichImgVoResp;
import com.iflysse.pojo.vo.resp.ResourceVoResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/resource")
@Api(value = "老师端资源的接口")
public class ResourceController  {


    @PostMapping(value = "/uploadRickImg")
    @ApiOperation(value = "富文本框 图片上传接口")
    public AddResourceRichImgVoResp doUploadRickImg(AddResourceRichImgVoReq addResourceRichImgVoReq) {

        AddResourceRichImgVoResp addResourceRichImgVoResp=new AddResourceRichImgVoResp();

            return addResourceRichImgVoResp;
    }


    @PostMapping("/addResourceHtml")
    @ApiOperation(value ="添加HTML 页面资源" )
    public CommonVoResp doAddResourceHtml(AddResourceHtmlVoReq addResourceHtmlVoReq){

        CommonVoResp commonVoResp=new CommonVoResp();

       return commonVoResp;
    }


    @PostMapping("/addResourceDoc")
    @ApiOperation(value = "添加文档资源")
    public CommonVoResp doAddResourceDoc(AddResourceDocVoReq addResourceDocVoReq) {

        CommonVoResp commonVoResp=new CommonVoResp();
        return commonVoResp;
    }


    @PostMapping("/addResourceVideo")
    @ApiOperation(value = "添加视频资源")
    public CommonVoResp doAddResourceVideo(AddResourceVideoVoReq addResourceVideoVoReq){

        CommonVoResp commonVoResp=new CommonVoResp();
        return commonVoResp;

    }

    @PostMapping("/addResourceQuestion")
    @ApiOperation(value = "添加试题资源")
    public CommonVoResp doAddResourceQuestion(AddResourceTestVoReq addResourceTestVoReq) {
        CommonVoResp commonVoResp=new CommonVoResp();
        return commonVoResp;
    }


    @PostMapping("/queryResource")
    @ApiOperation(value = "根据章得编号查询节得列表信息")
    public ResourceVoResp doQueryResource(ChapterIdVoReq chapterIdVoReq){
        ResourceVoResp resourceVoResp=new ResourceVoResp();
       return resourceVoResp;
    }
}
